/*
** 3210.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Thu Sep 25 14:57:46 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "3210.h" */
#include <stdio.h>

int main()
{
     int coins;

     while(scanf("%d", &coins)){
	  if (!coins) break;
	  if (coins % 2)
	       printf("%d\n", coins - 1);
	  else
	       printf("No Solution!\n");
     }

     return 0;
}
